<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Voodoo Shader Framework: K:/VoodooShader/Framework/Core.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>K:/VoodooShader/Framework/Core.hpp</h1><a href="_core_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="preprocessor">#ifndef VOODOO_CORE_HPP</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#define VOODOO_CORE_HPP</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="_meta_8hpp.html">Meta.hpp</a>&quot;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;<a class="code" href="_exception_8hpp.html">Exception.hpp</a>&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;<a class="code" href="_logger_8hpp.html">Logger.hpp</a>&quot;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="_texture_8hpp.html">Texture.hpp</a>&quot;</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="keyword">namespace </span>VoodooShader
<a name="l00011"></a>00011 {
<a name="l00018"></a><a class="code" href="class_voodoo_shader_1_1_core.html">00018</a>         <span class="keyword">class </span><a class="code" href="_meta_8hpp.html#a64a3622e4b9bb13e6e7a451bfaa84a48">VOODOO_API</a> <a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a>
<a name="l00019"></a>00019         {
<a name="l00020"></a>00020         <span class="keyword">public</span>:
<a name="l00028"></a>00028                 <a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a>(std::string logfile = <span class="stringliteral">&quot;Voodoo.log&quot;</span>);
<a name="l00029"></a>00029                 ~<a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a>();
<a name="l00030"></a>00030 
<a name="l00031"></a>00031                 CGcontext GetCGContext();
<a name="l00032"></a>00032                 <a class="code" href="class_voodoo_shader_1_1_logger.html" title="Logfile management class, capable of opening, closing, writing to and dumping log...">Logger</a> * GetLog();
<a name="l00033"></a>00033 
<a name="l00040"></a>00040                 <span class="keywordtype">void</span> SetAdapter(<a class="code" href="class_voodoo_shader_1_1_adapter.html" title="Graphics adapter class, responsible for interfacing the Voodoo Core with a given...">Adapter</a> * adapter);
<a name="l00041"></a>00041 
<a name="l00047"></a>00047                 <a class="code" href="class_voodoo_shader_1_1_adapter.html" title="Graphics adapter class, responsible for interfacing the Voodoo Core with a given...">Adapter</a> * GetAdapter();
<a name="l00048"></a>00048 
<a name="l00049"></a>00049                 <a class="code" href="class_voodoo_shader_1_1_shader.html">Shader</a> * CreateShader(std::string filename, <span class="keywordtype">char</span> ** args);
<a name="l00050"></a>00050                 <a class="code" href="class_voodoo_shader_1_1_texture.html">Texture</a> * CreateTexture(std::string name, <span class="keywordtype">void</span> * data);
<a name="l00051"></a>00051 
<a name="l00064"></a>00064                 <a class="code" href="class_voodoo_shader_1_1_parameter.html">Parameter</a> * CreateParameter(std::string name, <span class="keywordtype">bool</span> type);
<a name="l00065"></a>00065 
<a name="l00066"></a>00066         <span class="comment">//protected:</span>
<a name="l00067"></a>00067                 <span class="keyword">static</span> <span class="keywordtype">void</span> CGErrorHandler(CGcontext context, CGerror error, <span class="keywordtype">void</span> * core);
<a name="l00068"></a>00068 
<a name="l00069"></a>00069         <span class="keyword">private</span>:
<a name="l00070"></a>00070 
<a name="l00071"></a><a class="code" href="class_voodoo_shader_1_1_core.html#a207b84a4c192cde9aa31a38e595f6321">00071</a>                 <a class="code" href="class_voodoo_shader_1_1_adapter.html" title="Graphics adapter class, responsible for interfacing the Voodoo Core with a given...">Adapter</a> * mAdapter;
<a name="l00072"></a><a class="code" href="class_voodoo_shader_1_1_core.html#adacd9e1dd5fed8048ee75ab3b038ca31">00072</a>                 <a class="code" href="class_voodoo_shader_1_1_logger.html" title="Logfile management class, capable of opening, closing, writing to and dumping log...">Logger</a> * mLogger;
<a name="l00073"></a>00073 
<a name="l00074"></a>00074                 <span class="comment">// Manager objects:</span>
<a name="l00075"></a><a class="code" href="class_voodoo_shader_1_1_core.html#a27dfeed0923ab0433fa9f8e5f7ee69c5">00075</a>                 <a class="code" href="class_voodoo_shader_1_1_fullscreen_manager.html" title="Manager class to simplify loading and unloading fullscreen (post-processing) shader...">FullscreenManager</a> *     mManagerFS;
<a name="l00076"></a><a class="code" href="class_voodoo_shader_1_1_core.html#afa330334177d07206eb04dd45913634c">00076</a>                 <a class="code" href="class_voodoo_shader_1_1_material_manager.html" title="Manager class to simplify loading and using material (texture-bound) shaders.">MaterialManager</a> *       mManagerMat;
<a name="l00077"></a>00077 
<a name="l00078"></a>00078                 <span class="comment">// Cg objects:</span>
<a name="l00079"></a><a class="code" href="class_voodoo_shader_1_1_core.html#ae6691e6fd8e9901cec6b226bd339c952">00079</a>                 CGcontext mCGContext;
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="class_voodoo_shader_1_1_core.html#a2ada467bdb542f9b82296dbeaad64b2b">00081</a>                 <a class="code" href="namespace_voodoo_shader.html#a31c03472889593f1a19c9ca694a89d6c">CGEffectMap</a> mCGEffects;
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="class_voodoo_shader_1_1_core.html#acc643ec7e58236c13ad0c507d033a48d">00083</a>                 <a class="code" href="namespace_voodoo_shader.html#a9c26beae2e5e3148d62e92e0dd3c27fc">ShaderMap</a> mShaders;
<a name="l00084"></a><a class="code" href="class_voodoo_shader_1_1_core.html#a3a53f80376d6e93feaa9b0839c966bca">00084</a>                 <a class="code" href="namespace_voodoo_shader.html#afc309ccaa660c5dcb2b01496c750247e">TextureMap</a> mTextures;
<a name="l00085"></a><a class="code" href="class_voodoo_shader_1_1_core.html#a939d3bd29790ac2f4d173a9f2994d04a">00085</a>                 <a class="code" href="namespace_voodoo_shader.html#aa43e8da8b171ac23bef69d1d47edd7bd">ParameterMap</a> mParameters;
<a name="l00086"></a>00086         };
<a name="l00087"></a>00087 }
<a name="l00088"></a>00088 
<a name="l00089"></a>00089 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Oct 14 23:18:33 2010 for Voodoo Shader Framework by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
